
package com.insigma.business.qrcode.soldier.dao;


import com.insigma.business.qrcode.common.annotation.Crypt;
import com.insigma.business.qrcode.soldier.dto.SoldierOuterBasicInfoBSearcher;
import com.insigma.business.qrcode.soldier.entity.SoldierOuterBasicInfoDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Crypt(decryptFields = {"idCardNo", "mobile", ""})
public interface SoldierOuterBasicInfoDao {


    List<SoldierOuterBasicInfoDO> search(final SoldierOuterBasicInfoBSearcher innerSearcher);

    
    SoldierOuterBasicInfoDO get(final String id);

    
    Integer insert(final SoldierOuterBasicInfoDO soldierOuterBasicInfoDO);

    
    Integer update(final SoldierOuterBasicInfoDO soldierOuterBasicInfoDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    SoldierOuterBasicInfoDO getBySoldierId(String soldierId);

    @Crypt(encryptParamIndex = {0})
    Integer deleteByIdCardNo(String idCardNo);
}
